package com.zoe.onelink.mybatis.injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
import com.zoe.onelink.mybatis.method.SearchList;
import com.zoe.onelink.mybatis.method.SearchPage;

import java.util.List;

/**
 * <p>标题: </p>
 * <p>描述: zoe-essential 功能迁移 </p>
 * <p>版权: Copyright (c) 2020</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2022-11-08
 */
public class OnelinkMybatisMethodInjector extends DefaultSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass, TableInfo tableInfo) {
        List<AbstractMethod> methodList = super.getMethodList(mapperClass, tableInfo);
        methodList.add(new SearchList());
        methodList.add(new SearchPage());
        return methodList;
    }
}
